package org.formal.system.service;

import java.util.List;

import org.formal.common.base.BaseService;
import org.formal.system.entity.RoleEntity;

/**
 * 角色信息接口
 * @author jiangyan
 *
 */
public interface RoleService extends BaseService<RoleEntity> {
	
	public List<RoleEntity> getRoleByUserId(String userId);

	public String getRoleIdsByUserId(String userId);

	public List<RoleEntity> getRolesByResourceId(String resourceId);

	public String getRoleIdsByResourceId(String resourceId);

	public void saveRoleRelation(String resourceId, String[] roleArray);
}
